package com.example.neusoft.a16110100126yttordering.model;

import com.example.neusoft.a16110100126yttordering.common.Constants;
import com.example.neusoft.a16110100126yttordering.listener.RetrofitListener;
import com.example.neusoft.a16110100126yttordering.service.CollectionService;
import com.example.neusoft.a16110100126yttordering.service.FoodService;


import retrofit2.Call;

public class CollectionModel extends RetrofitBaseModel{
    private CollectionService collectionService;
    public CollectionModel(){
        this.collectionService=retrofit.create(CollectionService.class);
    }
    public void getAllUserCollection(int user_id, int flag, RetrofitListener listener){
        Call call=collectionService.getAllUserCollection(user_id,flag);
        bindCallback(call,listener,Constants.COLLECTION);
    }
}
